<?PHP
/**
 * This file is part of Thai-Cms < code.google.com/p/thai-cms >
 *
 *  This is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This software is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser Public License
 *  along with this software.  If not, see <http://www.gnu.org/licenses/>.
 */

 /**
 * @ผู้เขียน drsaluml
 */
 if (eregi("function_header.php",$_SERVER['PHP_SELF'])) {
    Header("Location: ../index.php");
    die();
}

function thaicms_config($action=''){
	global $db;
	$query = $db->fetch_fld("SELECT config_value FROM  `thaicms_config` where config_name = '".$action."' limit  1");
	return $query[config_value];
}

 ?>